home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / Java2 / src / javax / swing / ScrollPaneConstants.java < prev    next >
Encoding:
Java Source  |  1999-05-28  |  3.1 KB  |  92 lines  |  [TEXT/CWIE]

  1. /*
  2.  * @(#)ScrollPaneConstants.java    1.11 98/08/26
  3.  *
  4.  * Copyright 1997, 1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package javax.swing;
  16.  
  17.  
  18. /**
  19.  * Constants used with the JScrollPane component.
  20.  *
  21.  * @version 1.11 08/26/98
  22.  * @author Hans Muller
  23.  */
  24. public interface ScrollPaneConstants
  25. {
  26.     /**
  27.      * Identifies a "viewport" or display area, within which
  28.      * scrolled contents are visible.
  29.      */
  30.     String VIEWPORT = "VIEWPORT";
  31.     /** Identifies a vertical scrollbar. */
  32.     String VERTICAL_SCROLLBAR = "VERTICAL_SCROLLBAR";
  33.     /** Identifies a horizonal scrollbar. */
  34.     String HORIZONTAL_SCROLLBAR = "HORIZONTAL_SCROLLBAR";
  35.     /** 
  36.      * Identifies the area along the left side of the viewport between the
  37.      * upper left corner and the lower left corner.
  38.      */
  39.     String ROW_HEADER = "ROW_HEADER";
  40.     /** 
  41.      * Identifies the area at the top the viewport between the
  42.      * upper left corner and the upper right corner.
  43.      */
  44.     String COLUMN_HEADER = "COLUMN_HEADER";
  45.     /** Identifies the lower left corner of the viewport. */
  46.     String LOWER_LEFT_CORNER = "LOWER_LEFT_CORNER";
  47.     /** Identifies the lower right corner of the viewport. */
  48.     String LOWER_RIGHT_CORNER = "LOWER_RIGHT_CORNER";
  49.     /** Identifies the upper left corner of the viewport. */
  50.     String UPPER_LEFT_CORNER = "UPPER_LEFT_CORNER";
  51.     /** Identifies the upper right corner of the viewport. */
  52.     String UPPER_RIGHT_CORNER = "UPPER_RIGHT_CORNER";
  53.  
  54.     /** Identifies the vertical scroll bar policy property. */
  55.     String VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY";
  56.     /** Identifies the horizontal scroll bar policy property. */
  57.     String HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY";
  58.  
  59.     /**
  60.      * Used to set the vertical scroll bar policy so that 
  61.      * vertical scrollbars are displayed only when needed.
  62.      */
  63.     int VERTICAL_SCROLLBAR_AS_NEEDED = 20;
  64.     /**
  65.      * Used to set the vertical scroll bar policy so that 
  66.      * vertical scrollbars are never displayed.
  67.      */
  68.     int VERTICAL_SCROLLBAR_NEVER = 21;
  69.     /**
  70.      * Used to set the vertical scroll bar policy so that 
  71.      * vertical scrollbars are always displayed.
  72.      */
  73.     int VERTICAL_SCROLLBAR_ALWAYS = 22;
  74.  
  75.     /**
  76.      * Used to set the horizontal scroll bar policy so that 
  77.      * horizontal scrollbars are displayed only when needed.
  78.      */
  79.     int HORIZONTAL_SCROLLBAR_AS_NEEDED = 30;
  80.     /**
  81.      * Used to set the horizontal scroll bar policy so that 
  82.      * horizontal scrollbars are never displayed.
  83.      */
  84.     int HORIZONTAL_SCROLLBAR_NEVER = 31;
  85.     /**
  86.      * Used to set the horizontal scroll bar policy so that 
  87.      * horizontal scrollbars are always displayed.
  88.      */
  89.     int HORIZONTAL_SCROLLBAR_ALWAYS = 32;
  90. }
  91.  
  92.